<@override name="title">公众帐号信息</@override>

<@override name="viewbody">
<!-- Page title -->
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            微信设置
            <small>公众帐号信息</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    公众帐号信息
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- /page title -->


<!-- Form validation -->
<form class="form-horizontal validate" action="${ctx}/admin/wx/account/save" role="form" id="ajaxForm" method="post">

    <input name="account.id" type="hidden" value="${account['id']!}"/>

    <div class="panel panel-default">
        <div class="panel-heading"><h6 class="panel-title">微信帐号信息</h6></div>
        <div class="panel-body" id="form-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="account.wx_account">登录帐号: <span class="mandatory">*</span></label>
                <div class="col-sm-10">
                    <input type="text" class="required form-control" name="account.wx_account" id="account.wx_account" value="${account['wx_account']!}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="account.token">访问TOKEN: <span class="mandatory">*</span></label>
                <div class="col-sm-10">
                    <input type="text" class="required form-control" name="account.token" id="account.token" value="${account['token']!}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label" for="account.appid">AppId: <span class="mandatory">*</span></label>
                <div class="col-sm-10">
                    <input type="text" class="required form-control" name="account.appid" id="account.appid" value="${account['appid']!}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label" id="account.appsecret">AppSecret: <span class="mandatory">*</span></label>
                <div class="col-sm-10">
                    <input type="text" class="required form-control" name="account.appsecret" id="account.appsecret" value="${account['appsecret']!}">
                </div>
            </div>

            <div class="form-actions text-right">
                <input type="button" id="save" value="保存" class="btn btn-primary">
            </div>

        </div>

    </div>
</form>

<script id="message-template" type="text/x-handlers-template">
<div class="alert {{class}} fade in widget-inner" id="alert">
    <button type="button" class="close" data-dismiss="alert">×</button>
    {{message}}
</div>
</script>


</@override>
<@override name="viewmodule">account</@override>
<@extends name="../../_basic/main.ftl"></@extends>
